class NotificationListenBody {

  final int id;
  final String packageName;
  final String title;
  final String content;
  final bool remove;

  NotificationListenBody({required this.id, required this.packageName, required this.title, required this.content, required this.remove});

  @override
  String toString() {
    return "id: $id, packageName: $packageName, title: $title, content: $content, remove: $remove";
  }

  static NotificationListenBody fromMap(Map<dynamic, dynamic> data) {
    return NotificationListenBody(id: data["id"], packageName: data["packageName"], title: data["title"], content: data["content"], remove: data["hasRemoved"]);
  }
}